#include "Log.hpp"
#include "ThreadPool.hpp"
#include "Task.hpp"

using namespace LogModule;
using namespace ThreadPoolModule;
int main()
{
    Enable_Console_Log_Strategy();
    ThreadPool<task_t> *tp = new ThreadPool<task_t>();
    tp->Start();
    sleep(5);
    int count = 10;
    while (count)
    {
        tp->Enqueue(Download);
        sleep(1);
        count--;
    }
    tp->Stop();
    tp->Join();
    return 0;
}